package com.mask.lego.order.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;


/**
 * @author hx
 * jackson json转实体 com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException
 * 忽略字段缺少
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class OrderItemVo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long skuId;

    private Boolean check;

    private String title;

    private String image;

    /**
     * 商品套餐属性
     */
    private List<String> skuAttrValues;

    private BigDecimal price;

    private Integer count;

    private BigDecimal totalPrice;

    /** 商品重量 **/
    private BigDecimal weight = new BigDecimal("0.085");
}
